package cn.layfolk.daimao.config.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * 描述: SecurityProperty
 * 作者: panhongtong
 * 创建时间: 2020-11-19 12:08
 **/
@Component
@ConfigurationProperties(prefix = "app.security")
public class SecurityProperty {

    /**
     * 资源id
     */
    private String resourceId;

    /**
     * 放行的url
     */
    private List<String> permitAll;

    /**
     * url和角色
     */
    Map<String,List<String>> urlAndRole;

    public Map<String, List<String>> getUrlAndRole() {
        return urlAndRole;
    }

    public void setUrlAndRole(Map<String, List<String>> urlAndRole) {
        this.urlAndRole = urlAndRole;
    }

    public String getResourceId() {
        return resourceId;
    }

    public void setResourceId(String resourceId) {
        this.resourceId = resourceId;
    }

    public List<String> getPermitAll() {
        return permitAll;
    }

    public void setPermitAll(List<String> permitAll) {
        this.permitAll = permitAll;
    }

}
